import iViewTheme from 'iview-layout-themes'
const axios = iViewTheme.util.apiRequest
// 获取举报列表
export const getReportList = (data) => {
  return axios.request({
    url: 'wl/site/getReportList',
    data: data,
    type: 'post',
    php: true
  })
}
// 获取举报标题
export const getReportTitleList = (data) => {
  return axios.request({
    url: 'wl/site/getReportTitleList',
    data: data,
    type: 'post',
    php: true
  })
}
// 通过id编辑
export const getReportById = (data) => {
  return axios.request({
    url: 'wl/site/getReportById',
    data: data,
    type: 'post',
    php: true
  })
}
// 编辑举报信息
export const editReport = (data) => {
  return axios.request({
    url: 'wl/site/editReport',
    data: data,
    type: 'post',
    php: true
  })
}
// 删除单条
export const deleteReport = (data) => {
  return axios.request({
    url: 'wl/site/deleteReport',
    data: data,
    type: 'post',
    php: true
  })
}
// 批量删除
export const deleteReportStrips = (data) => {
  return axios.request({
    url: 'wl/site/deleteReportStrips',
    data: data,
    type: 'post',
    php: true
  })
}
/* --项目监督举报接口-- */
// 获取项目监督举报列表
export const getProjectReportList = (data) => {
  return axios.request({
    url: 'wl/site/getProjectReportList',
    data: data,
    type: 'post',
    php: true
  })
}
// 获取项目名称列表
export const getProjectNameList = (data) => {
  return axios.request({
    url: 'wl/site/getProjectNameList',
    data: data,
    type: 'post',
    php: true
  })
}
// 添加项目举报
export const addProjectReport = (data) => {
  return axios.request({
    url: 'wl/site/addProjectReport',
    data: data,
    type: 'post',
    php: true
  })
}
// 通过id获取项目举报列表
export const getProjectReportById = (data) => {
  return axios.request({
    url: 'wl/site/getProjectReportById',
    data: data,
    type: 'post',
    php: true
  })
}
// 修改项目举报信息
export const editProjectReport = (data) => {
  return axios.request({
    url: 'wl/site/editProjectReport',
    data: data,
    type: 'post',
    php: true
  })
}
// 通过项目名称获取项目监督列表
export const getProjectList = (data) => {
  return axios.request({
    url: 'wl/site/getProjectList',
    data: data,
    type: 'post',
    php: true
  })
}
// 删除单条
export const deleteProjectReport = (data) => {
  return axios.request({
    url: 'wl/site/deleteProjectReport',
    data: data,
    type: 'post',
    php: true
  })
}
// 批量删除
export const deleteProjectReportStrips = (data) => {
  return axios.request({
    url: 'wl/site/deleteProjectReportStrips',
    data: data,
    type: 'post',
    php: true
  })
}
